﻿using ESRI.ArcGIS.Display;
using System;
using System.Drawing;

namespace Akiha.Core
{
    public static class RgbColorWrapper
    {
        //添加透明量
        public static IRgbColor GetRGBColor(Color color)
        {
            return GetRGBColor(color.R, color.G, color.B,color.A);
        }

        public static IRgbColor GetRGBColor(int redValue, int greenValue, int blueValue,byte alpha)
        {
            return new RgbColorClass { Red = redValue, Green = greenValue, Blue = blueValue,Transparency=alpha };
        }
    }
}

